import { get, post, put, del } from './request'

//注册
export const registerApi = data => post(`/register`, data);
//登录
export const loginApi = data => post(`/login`, data);

// 获取read列表 文章列表
export const listApi = data => get(`/system/article/list`, data);
//列表详情
export const listDetailApi = id => get(`/system/article/${id}`);
//新增文章
export const addArticleApi = data => post(`/system/article/save`, data);
//积分记录
export const integralApi = data => get(`/system/integral/list`, data);
//修改文章
export const articleEditApi = data => put(`/system/article/edit`, data);